#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

}

Widget::~Widget()
{
    delete ui;
    th.wait();
    th2.wait();
}


void Widget::on_btnStart_clicked()
{
       WorkerThread::packageCount = 200;
       th.start();
       th2.start();

}
